package rps.client.ui;

import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

import rps.game.data.FigureKind;
import rps.game.data.Player;

// erstellt am 11.3 um 18 uhr von can
public class MyJButton extends JButton {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Player p;
	public FigureKind figureKind;
	
	

	public MyJButton() {
	}

	public MyJButton(Icon arg0) {
		super(arg0);
	}

	public MyJButton(String arg0) {
		super(arg0);
	}

	public MyJButton(Action arg0) {
		super(arg0);
	}

	public MyJButton(String arg0, Icon arg1) {
		super(arg0, arg1);
	}
	
	

	public void setPlayer(Player p){
		this.p = p;
	}
	
	public Player getPlayer(){
		return p;
	}

	/**
	 * @return the figureKind
	 */
	public FigureKind getFigureKind() {
		return figureKind;
	}

	/**
	 * @param figureKind the figureKind to set
	 */
	public void setFigureKind(FigureKind figureKind) {
		this.figureKind = figureKind;
	}
	
	

}
